<?php
// EOL
define('EOL', "\n");
// master file
$appcore = dirname(__file__) . '/';
require_once $appcore . 'utility/core.php';
// set path...
Magnum::dir('APPCORE', $appcore);
// load the universal functions
Magnum::dir('APPEXT', $appcore . '../extended/');
Magnum::dir('THEMEDIR', $appcore . '../theme/' . SITE_THEME . '/');
// baseURL?
Magnum::dir('BASEURL', str_replace('index.php', '', $_SERVER['PHP_SELF']));
Magnum::dir('THEMEURL', Magnum::dir('BASEURL') . 'theme/' . SITE_THEME . '/');

// internal error handler
set_exception_handler('Magnum::e_handle');

// start importing libraries
Magnum::import('control');
Magnum::import('view');
Magnum::importtheme('view');
?>